package com.sunxu.spring.scope.service;

/**
 * @author 孙许
 * @date 2018-07-14
 * @description
 */
public class MessageServiceImpl implements MessageService {

    private String userName;
    private int age;

    public MessageServiceImpl(String userName, int age) {
        this.userName = userName;
        this.age = age;
    }

    @Override
    public String getMessage() {
        return "姓名: " + userName + " | 年龄: " + age;
    }
}
